<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Nabu-asr: nabu.neuralnetworks.models.ed_decoders.speller.Speller Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Nabu-asr
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacenabu.html">nabu</a></li><li class="navelem"><b>neuralnetworks</b></li><li class="navelem"><b>models</b></li><li class="navelem"><b>ed_decoders</b></li><li class="navelem"><b>speller</b></li><li class="navelem"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1speller_1_1Speller.html">Speller</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1speller_1_1Speller-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">nabu.neuralnetworks.models.ed_decoders.speller.Speller Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>a speller decoder for the LAS architecture  
 <a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1speller_1_1Speller.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for nabu.neuralnetworks.models.ed_decoders.speller.Speller:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1speller_1_1Speller.png" usemap="#nabu.neuralnetworks.models.ed_5Fdecoders.speller.Speller_map" alt=""/>
  <map id="nabu.neuralnetworks.models.ed_5Fdecoders.speller.Speller_map" name="nabu.neuralnetworks.models.ed_decoders.speller.Speller_map">
<area href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder.html" title="a speller decoder for the LAS architecture " alt="nabu.neuralnetworks.models.ed_decoders.rnn_decoder.RNNDecoder" shape="rect" coords="0,112,407,136"/>
<area href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder.html" title="a general decoder for an encoder decoder system " alt="nabu.neuralnetworks.models.ed_decoders.ed_decoder.EDDecoder" shape="rect" coords="0,56,407,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a58120844299c18fc7c514a97550e5025"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1speller_1_1Speller.html#a58120844299c18fc7c514a97550e5025">create_cell</a> (self, encoded, encoded_seq_length, is_training)</td></tr>
<tr class="memdesc:a58120844299c18fc7c514a97550e5025"><td class="mdescLeft">&#160;</td><td class="mdescRight">create the rnn cell  <a href="#a58120844299c18fc7c514a97550e5025">More...</a><br /></td></tr>
<tr class="separator:a58120844299c18fc7c514a97550e5025"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder.html">nabu.neuralnetworks.models.ed_decoders.rnn_decoder.RNNDecoder</a></td></tr>
<tr class="memitem:aea65ba7eb48016f149a0a411fc68a488 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder.html#aea65ba7eb48016f149a0a411fc68a488">create_cell</a> (self, encoded, encoded_seq_length, is_training)</td></tr>
<tr class="memdesc:aea65ba7eb48016f149a0a411fc68a488 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder"><td class="mdescLeft">&#160;</td><td class="mdescRight">create the rnn cell  <a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder.html#aea65ba7eb48016f149a0a411fc68a488">More...</a><br /></td></tr>
<tr class="separator:aea65ba7eb48016f149a0a411fc68a488 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf99d09c6385b3a9694ccf772dcb388f inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder.html#acf99d09c6385b3a9694ccf772dcb388f">zero_state</a> (self, encoded_dim, batch_size)</td></tr>
<tr class="memdesc:acf99d09c6385b3a9694ccf772dcb388f inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the decoder zero state  <a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder.html#acf99d09c6385b3a9694ccf772dcb388f">More...</a><br /></td></tr>
<tr class="separator:acf99d09c6385b3a9694ccf772dcb388f inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e0e46bba474884fc6a88b84f2123650 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder"><td class="memItemLeft" align="right" valign="top"><a id="a7e0e46bba474884fc6a88b84f2123650"></a>
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder.html#a7e0e46bba474884fc6a88b84f2123650">__getstate__</a> (self)</td></tr>
<tr class="memdesc:a7e0e46bba474884fc6a88b84f2123650 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder"><td class="mdescLeft">&#160;</td><td class="mdescRight">getstate <br /></td></tr>
<tr class="separator:a7e0e46bba474884fc6a88b84f2123650 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1rnn__decoder_1_1RNNDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder.html">nabu.neuralnetworks.models.ed_decoders.ed_decoder.EDDecoder</a></td></tr>
<tr class="memitem:a77f29a15d47e04d0462382b1bf86c74d inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder.html#a77f29a15d47e04d0462382b1bf86c74d">__init__</a> (self, conf, output_dims, constraint, name=None)</td></tr>
<tr class="memdesc:a77f29a15d47e04d0462382b1bf86c74d inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder.html" title="a general decoder for an encoder decoder system ">EDDecoder</a> constructor.  <a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder.html#a77f29a15d47e04d0462382b1bf86c74d">More...</a><br /></td></tr>
<tr class="separator:a77f29a15d47e04d0462382b1bf86c74d inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c68c23641fa383309cd33da5e87024d inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memItemLeft" align="right" valign="top"><a id="a4c68c23641fa383309cd33da5e87024d"></a>
def&#160;</td><td class="memItemRight" valign="bottom"><b>__call__</b> (self, encoded, encoded_seq_length, targets, target_seq_length, is_training)</td></tr>
<tr class="separator:a4c68c23641fa383309cd33da5e87024d inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad63ca4fd37aef51ec8bf39b6b7605b3c inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder.html#ad63ca4fd37aef51ec8bf39b6b7605b3c">zero_state</a> (self, encoded_dim, batch_size)</td></tr>
<tr class="memdesc:ad63ca4fd37aef51ec8bf39b6b7605b3c inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the decoder zero state  <a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder.html#ad63ca4fd37aef51ec8bf39b6b7605b3c">More...</a><br /></td></tr>
<tr class="separator:ad63ca4fd37aef51ec8bf39b6b7605b3c inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1894af6a716f3b74fb6d7e18486db57c inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memItemLeft" align="right" valign="top"><a id="a1894af6a716f3b74fb6d7e18486db57c"></a>
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder.html#a1894af6a716f3b74fb6d7e18486db57c">variables</a> (self)</td></tr>
<tr class="memdesc:a1894af6a716f3b74fb6d7e18486db57c inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="mdescLeft">&#160;</td><td class="mdescRight">get a list of the models's variables <br /></td></tr>
<tr class="separator:a1894af6a716f3b74fb6d7e18486db57c inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder.html">nabu.neuralnetworks.models.ed_decoders.ed_decoder.EDDecoder</a></td></tr>
<tr class="memitem:ad72250551305013443fb329475f32f5c inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memItemLeft" align="right" valign="top"><a id="ad72250551305013443fb329475f32f5c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>conf</b></td></tr>
<tr class="separator:ad72250551305013443fb329475f32f5c inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b93d40875b75f4c0efae7c81f20d5fe inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memItemLeft" align="right" valign="top"><a id="a0b93d40875b75f4c0efae7c81f20d5fe"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>outputs</b></td></tr>
<tr class="separator:a0b93d40875b75f4c0efae7c81f20d5fe inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01d592d2a31ccb68aa8344c17effe2fd inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memItemLeft" align="right" valign="top"><a id="a01d592d2a31ccb68aa8344c17effe2fd"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>output_dims</b></td></tr>
<tr class="separator:a01d592d2a31ccb68aa8344c17effe2fd inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45bbefef13ade8d793c1ceda5ac6e68a inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memItemLeft" align="right" valign="top"><a id="a45bbefef13ade8d793c1ceda5ac6e68a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>scope</b></td></tr>
<tr class="separator:a45bbefef13ade8d793c1ceda5ac6e68a inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__decoders_1_1ed__decoder_1_1EDDecoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>a speller decoder for the LAS architecture </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a58120844299c18fc7c514a97550e5025"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58120844299c18fc7c514a97550e5025">&sect;&nbsp;</a></span>create_cell()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def nabu.neuralnetworks.models.ed_decoders.speller.Speller.create_cell </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>encoded</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>encoded_seq_length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>is_training</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>create the rnn cell </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">encoded</td><td>the encoded sequences as a [batch_size x max_time x dim] tensor that will be queried with attention set to None if the rnn_cell should be created without the attention part (for zero_state) </td></tr>
    <tr><td class="paramname">encoded_seq_length</td><td>the encoded sequence lengths as a [batch_size] </td></tr>
    <tr><td class="paramname">vector</td><td></td></tr>
    <tr><td class="paramname">is_training</td><td>bool whether or not the network is in training mode</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an RNNCell object </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="speller_8py.html">speller.py</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
